Skip to content

Instantly share code, notes, and snippets.

@tak-dcxi
tak-dcxi / typography.md
Last active January 16, 2026 18:10
タイポグラフィCSS

タイポグラフィ

汎用的な文章の折り返し指定

  • 下のような指定を:rootに指定しておく。
:where(:root) {
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
  /* word-break: initial; 単語の分割はデフォルトに依存(初期値のため指定しなくて良い) */
@mrphrazer
mrphrazer / graph_analysis.py
Last active January 16, 2026 18:08
Control-flow graph analysis using Miasm
# (c) Tim Blazytko 2021
# implementation used in the blog post "Introduction to Control-flow Graph Analysis"
# https://synthesis.to/2021/03/15/control_flow_analysis.html
from miasm.core.graph import DiGraph
# define edges
edges = [
("a", "b"),
("a", "c"),
("b", "d"),
@negri
negri / Modem-Vivo-Askey-Bridge-Telefone.md
Created October 30, 2024 11:52
Modem Vivo Askey em Bridge sem Perder o Telefone

Modem Vivo Askey em Bridge sem perder o telefone (e TV)

"Coming together is a beginning; keeping together is progress; working together is success." - Henry Ford

O Problema

A Vivo oferece um serviço de Internet por Fibra Óptica, de boa velocidade e preço competitivo em São Paulo. Para pessoas jurídicas eles entregam um IPv4 real (embora dinâmico) e um belo bloco de IPv6 plenamente funcional. Por um pouco a mais eles entregam um número de telefone, e por um pouco mais eles habilitam o "Siga-Me", que te permite direcionar todas as chamadas para um outro número, um celular, por exemplo, muito útil.

Eles entregam o serviço (em 2024) através de um modem Askey (no nosso caso um RTF8225VW), que em tese é bastante competente: aguenta taxas até gigabit, Wi-Fi 6, e é um aparelho discreto.

@Shpigford
Shpigford / CLAUDE.md
Created January 6, 2026 20:04
The starting CLAUDE.md file I (@Shpigford) use for all new dev projects. This assumes using Rails + Inertia.js, but many of the rules can be ported over to other languages/frameworks.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

About Yeetsheet

The name of this project is "Yeetsheet". Yeetsheet is a spreadsheet automation tool. It connects to Google Sheets, Excel, and Airtable. Core functionality: watch spreadsheets for changes, run transformations on cell data, sync data between multiple spreadsheet sources, and send notifications based on conditions. Users create automations through a visual node-based editor rather than code. Common use cases include consolidating data from multiple sheets into one, auto-populating templates when source data changes, and validating data against rules. Has a REST API for programmatic access. Data transformations support filtering, mapping, lookups, and basic aggregations.

Development Commands

@mratkovic
mratkovic / fn_k400.py
Created August 9, 2016 18:34
Toggle F-Keys functionality on Logitech K400 Plus Wireless Touch keyboard
import hidapi
import os
import sys
from argparse import ArgumentParser
_UNIFYING_DRIVER = 'logitech-djreceiver'
_LOGITECH_VENDOR_ID = 0x046d
_OFF = '\x10\x01\t\x19\x00\x00\x00'
_ON = '\x10\x01\t\x18\x01\x00\x00'
@chomes
chomes / nordvpn.nix
Last active January 16, 2026 18:00 — forked from myypo/nordvpn.nix
A fork of @myypo nordvpn.nix module. This allows you to install the latest version of nordvpn client. It downloads the debian package then installs it on your nixos module.
{
config,
lib,
pkgs,
...
}: let
nordVpnPkg = pkgs.callPackage ({
autoPatchelfHook,
buildFHSEnvChroot,
dpkg,
@mercan798
mercan798 / uav-flight-control
Created January 16, 2026 17:59
DroneKit-Python: Basic Takeoff and Land Script A fundamental script to perform an autonomous takeoff to 10m and landing using DroneKit and ArduPilot/SITL in GUIDED mode.
from dronekit import connect, VehicleMode
import time
print("Connecting to vehicle on:")
vehicle = connect("127.0.0.1:14550", wait_ready=True)
print("Connected")
print("trying to take guide mode...")
vehicle.mode = VehicleMode("GUIDED")
@MaxenceMottard
MaxenceMottard / TicketShape.swift
Created October 13, 2022 17:54
Ticket Shape SwiftUI
struct TicketShape: Shape {
let cornerRadius: CGFloat
let center: CGFloat
let radius: CGFloat?
fileprivate init(cornerRadius: CGFloat, center: CGFloat, radius: CGFloat? = nil) {
self.cornerRadius = cornerRadius
self.center = center
self.radius = radius
}
@Huijiro
Huijiro / hytale-item-schema.json
Created January 16, 2026 05:10
hytale-item-schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Hytale Item Configuration Schema - Fully Documented",
"description": "Complete JSON Schema for Hytale Item asset configuration with comprehensive documentation including full Java package references, field mappings, and enumeration details. All properties are documented with line numbers and source code references.",
"type": "object",
"required": ["Id"],
"additionalProperties": false,
"properties": {
"Id": {
"type": "string",